<%@ page import="com.mlt.back.beans.InfoDetail" %>
<%@ page import="java.util.List" %>
<%@ page import="com.mlt.back.beans.BasicInfo" %>
<%@ page import="com.mlt.back.service.impl.BasicInfoServiceImpl" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%
    List<BasicInfo> basicInfos = new BasicInfoServiceImpl().list();
%>

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>添加选项</title>
</head>
<body>
<div>
    <h2>添加选项</h2>
    <div>
        <form action="/mlt_war_exploded/infoDetail/add" method="post">
            <div>
                <ul>

                    <li><label>所属类目</label>
                        <span>
                            <select name="fk_basic_info_id">
                                <option value="">--选择所属类目--</option>
                                <%for (BasicInfo basicInfo : basicInfos) {%>
                                <option value="<%=basicInfo.getBasic_info_id()%>"><%=basicInfo.getBasic_info_name()%></option>
                                <%}%>
                            </select>
                        </span>
                    </li>

                    <li>
                        <label>选项名称：</label>
                        <span>
                            <input type="text" name="info_detail_name" placeholder="请输入选项名称">
                        </span>
                    </li>

                    <li>
                        <label>选项描述：</label>
                        <span>
                            <input type="text" name="info_detail_desc" placeholder="请输入选项描述">
                        </span>
                    </li>
                </ul>
                    <input type="submit">
            </div>
        </form>
    </div>
</div>
</body>
</html>
